from django import forms
from django.utils.translation import gettext_lazy as _


class AuthConfigForm(forms.ModelForm):
    class Meta:
        widgets = {
            'remark': forms.Textarea(attrs={'cols': 100, 'rows': 4}),
        }


class EmailBindForm(forms.Form):
    email = forms.EmailField(
        label=_('邮箱'), max_length=128,
        widget=forms.EmailInput(attrs={'class': 'form-control'})
    )
    code = forms.CharField(
        label=_('验证码'), max_length=6,
        widget=forms.TextInput(attrs={'class': 'form-control'})
    )
    name = forms.CharField(
        label=_('姓名'), max_length=128,
        widget=forms.TextInput(attrs={'class': 'form-control'})
    )
    org_name = forms.CharField(
        label=_('公司'), max_length=128,
        widget=forms.TextInput(attrs={'class': 'form-control'})
    )
